﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure.StorageClient;

namespace AzureGames.Data.Implementation.ServiceEntities
{
    public class GameStatisticsEntity : BaseTableEntity
    {
        public int GameDefinitionID { get; set; }
        public int GameType { get; set; }
        public DateTime Date { get; set; }

        public int CreatedGames { get; set; }
        public int CancelledGames { get; set; }
        public int CompletedGames { get; set; }
        

        public static implicit operator Model.Statistics.GameStatistics(GameStatisticsEntity from)
        {
            return AutoMapper.Mapper.Map<GameStatisticsEntity, Model.Statistics.GameStatistics>(from);
        }

        public static implicit operator GameStatisticsEntity(Model.Statistics.GameStatistics from)
        {
            return AutoMapper.Mapper.Map<Model.Statistics.GameStatistics, GameStatisticsEntity>(from);
        }
    }
}
